obj-m += hello_chardrv.o

KERNELDIR=/lib/modules/$(shell uname -r)/build
PWD:=$(shell pwd)

all: chardrv
 
chardrv:
	make -C $(KERNELDIR) M=$(PWD) modules

clean:
	rm -rf *.o* *.ko* *.mod.c *.cmd *.symvers .tmp_versions .*.cmd
 
